package com.basic.business.goodsLabel.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 商品标签管理对象 t_goods_label
 *
 * @author zhaoxy_jn@163.com
 * @date 2025-07-05
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TGoodsLabel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    @ExcelProperty(value = "商品ID")
    private String id;

    /** 商品标签 */
    @ExcelProperty(value = "商品标签")
    private String goodsLabel;

    /** 状态 正常：NORMAL 删除：DELETED 锁定：LOCKED */
    private String status;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
